﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;

namespace B2B.Models
{
    public class SP_CapNhatBaoGia
    {
        public static int capNhatBaoGia(int maBG, int tinhTrang)
        {
            SqlConnection conn = KetNoi.Connection();
            SqlCommand cmd = new SqlCommand("SP_CAPNHATBAOGIA", conn);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@MABAOGIA", maBG);
            cmd.Parameters.AddWithValue("@TINHTRANG", tinhTrang);
            conn.Open();
            int kq = cmd.ExecuteNonQuery();
            conn.Close();
            return kq;
        }
    }
}